﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using NewFormatProject.Infrastructure.Atrributes;
using NewFormatProject.Infrastructure.Dto.Responses;
using NewFormatProject.Infrastructure.Dto.Responses.Objects;
using NewFormatProject.Infrastructure.EFCore;

namespace NewFormatProject.Server.Interfaces
{
    [ProvideClassOrInterface]
    public interface IRightServer
    {
        public Task<ResponseApiDto> Tree();
        public Task<ResponseApiDto> Add(SysRights right);
        public Task<ResponseApiDto> Delete(SysRights right);
        public Task<ResponseApiDto> Update(SysRights right);
        
    }
}
